home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / progre2a / form1.frm (.txt) next >
Encoding:
Visual Basic Form  |  1999-10-13  |  1.2 KB  |  45 lines

  1. VERSION 5.00
  2. Begin VB.Form Form1 
  3.    Caption         =   "Form1"
  4.    ClientHeight    =   3645
  5.    ClientLeft      =   60
  6.    ClientTop       =   345
  7.    ClientWidth     =   7440
  8.    LinkTopic       =   "Form1"
  9.    ScaleHeight     =   3645
  10.    ScaleWidth      =   7440
  11.    StartUpPosition =   3  'Windows Default
  12.    Begin VB.CommandButton Command1 
  13.       Caption         =   "Click Me"
  14.       Height          =   465
  15.       Left            =   2880
  16.       TabIndex        =   1
  17.       Top             =   720
  18.       Width           =   1605
  19.    End
  20.    Begin Project1.Progress Progress1 
  21.       Height          =   795
  22.       Left            =   1200
  23.       TabIndex        =   0
  24.       Top             =   1560
  25.       Width           =   4965
  26.       _ExtentX        =   8758
  27.       _ExtentY        =   1402
  28.    End
  29. Attribute VB_Name = "Form1"
  30. Attribute VB_GlobalNameSpace = False
  31. Attribute VB_Creatable = False
  32. Attribute VB_PredeclaredId = True
  33. Attribute VB_Exposed = False
  34. Private Sub Command1_Click()
  35.     Dim i As Integer
  36.     Progress1.MaxValue = 1000
  37.     For i = 1 To 1000 Step 1
  38.         Progress1.UpdateTo i
  39.         DoEvents
  40.     Next i
  41. End Sub
  42. Private Sub Form_Load()
  43.     Progress1.UpdateTo 0
  44. End Sub
  45.